package com.xy.demo.transaction.generator.controller;

import com.xy.demo.transaction.generator.service.T1Service;
import com.xy.demo.transaction.generator.service.T2Service;
import com.xy.demo.transaction.generator.service.TService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class TController {

    @Autowired
    private TService tService;

    @GetMapping("/test1")
    public String test1() {
        tService.insert(true);
        return "ok";
    }
}
